package leilib.ir.tools;

import static org.junit.Assert.*;

import org.junit.Test;

public class ParamersTest {

	@Test
	public void testGetArgs() {
		String args[]={"-t", "time" ,"-m" ,"men" ,"test"};
		Paramers p = new Paramers();
		p.parser(args);
		
		String[] arg1=p.getArgs("t");
		String[] arg2=p.getArgs("m");
		
		assertNotNull(arg1);
		assertNotNull(arg2);
		
		assertEquals(arg1[0], "time");
		assertEquals(arg2[0], "men");
		assertEquals(arg2[1], "test");
	}

}
